<?php

include 'tabletag.php';
include 'trtag.php';

echo "<pre>";

$struct[0] = '<tr class="%s">';
$struct[1] = '<td class="%s">';
$struct[2] = '%s</td>';
$struct[3] = '<td class="%s">';
$struct[4] = '<div><pre>%s</pre>';
$struct[5] = '<em>%s</em>';
$struct[6] = '%s</div></td></tr>';

/*
<tr class="log-memory"> 
                        <td class="type">memory</td> 
                        <td class="alt"><div><pre>202 bytes</pre> <em>object</em>: PQP Example Class : Line 48 </div></td></tr>
                        
<tr class="log-speedy">
                        <td class="type">memory</td>
                        <td class="alt"><div><pre>202 bytes</pre><em>object</em>PQP Example Class : Line 48</div></td></tr></pre>                        

<tr class="log-speed"> 
                        <td class="type">speed</td> 
                        <td class=""><div><pre>0.662 ms</pre> <em>Time taken to get to line 51</em></div></td></tr>
*/

$data = array(
            array('log-speed', 'type', 'memory', 'alt', '202 bytes', 'object', 'PQP Example Class : Line 48'),
        );

$test = new Entity\TrTag($struct);
print_r($test);

$result = $test->generate($data);
print_r($result);

/*
$table = '<table class="main" cellspacing="0">{{data}}</table>';
$test = new Entity\TableTag($test);
*/

echo "</pre>";
